package com.mdd.service.impl;

import com.mdd.dao.BookDao;
import com.mdd.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("bookService")
public class BookServiceImpl implements BookService {
    @Autowired
    //@Qualifier("bookDao")
    private BookDao bookDao;

    public BookServiceImpl(BookDao bookDao) {
        this.bookDao = bookDao;
    }

    public BookServiceImpl() {

    }

    public void save() {
        System.out.println("book service save ...");
        bookDao.save();
    }

}
